import pytest
@pytest.fixture()
def func1():
    return '这是一个fixture函数'


@pytest.fixture(scope="session")
def first():
    print("\n获取用户名,scope为session级别多个.py模块只运行一次")
    a = "xiaoyulaoshi"
    return a
